package edu.xhu.homepage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.xhu.model.video.pojos.BiliVideo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BiliVideoMapper extends BaseMapper<BiliVideo> {
    /**
     * 随机查5个合集视频出来
     */
    List<BiliVideo> compilationVideoList();

    /**
     * 随机查10个普通视频出来
     */
    List<BiliVideo> normalVideoList();
    /*
    随机5个视频出来
     */
    List<BiliVideo> random5VideoList();

    /**
     * 查询全部视频记录
     *
     * @return
     */
    @Select("SELECT * FROM bili_video")
    List<BiliVideo> selectAll();


}
